package com.design.pattern.structuremode.composite;

/**
 * 结构型模式-组合模式
 * @author yll
 * @version 1.0.0
 * @date 2024/03/21 20：37
 * @desc 组合接口实现类 特殊类
 * */
public class Left extends IComponent {

    public Left(String name) {
        super(name);
    }

    @Override
    public void add(IComponent component) {
        System.out.println("禁止添加！");
    }

    @Override
    public void remove(IComponent component) {
        System.out.println("禁止删除！");
    }
}
